package com.market.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.market.entity.Airport;
import com.market.service.AirportService;

@Controller
public class AuthorityImpl implements AuthorityService {
	
	@Autowired
	private AirportService airportService;
	
	@RequestMapping("/home.html")
	public ModelAndView helloWorld() {
		Airport airport = airportService.find("SZV");
		return new ModelAndView("home", "airport", airport);
	}
}
